home *** CD-ROM | disk | FTP | other *** search
/ Aminet 44 / Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso / Aminet / game / patch / WHDIGamesJ-M.lzh / JamesPond.lha / JamesPondHD / Install-JamesPond next >
Text File  |  1980-02-11  |  2KB  |  78 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  20.  
  21.  
  22. (set default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set @default-dest (tackon default-dest @app-name))
  32.  
  33. (set #CI_unit
  34.     (askchoice
  35.         (prompt "From which disk unit do you want\nto install the game")
  36.         (help    @askoptions-help)
  37.         (choices
  38.            "DF0:"
  39.            "DF1:"
  40.            "DF2:"
  41.            "DF3:"
  42.         )
  43.     )
  44. )
  45.  
  46. (set #CI_drive ("DF%ld:" #CI_unit))
  47.  
  48. (makedir @default-dest
  49.     (help @makedir-help)
  50.     (infos)
  51. )
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "JamesPondHD")
  58.     (dest @default-dest)
  59.     (infos)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "jpondhd.readme")
  65.     (dest @default-dest)
  66.     (infos)
  67. )
  68.  
  69. (message ("\nInsert %s disk into drive %s !" @app-name #CI_drive))
  70.     (if
  71.         (= 0 (run ("disk2file %ld \"%s/jpond.d1\" >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  72.         ("")
  73.         (abort "\"disk2file\" must be in your PATH !")
  74.     )
  75.  
  76. (exit)
  77.  
  78.